package cn.hcbycloud.stream.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author gaoh
 * @desc 消息传递对象
 * @date 2022年02月11日 下午 9:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StreamMessageDTO implements Serializable {
    private Integer id;
    private String projectName;
    private String org;
    private String author;
    private String version;

    public static StreamMessageDTO defaultMessage() {

        return new StreamMessageDTO(
                1,
                "e-commerce-stream-client",
                "imooc.com",
                "Qinyi",
                "1.0"
        );
    }
}